<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>菜单修改</title>
    <th:block th:include="~{common/common::commonHead}"/>
    <script th:src="@{/js/system/menuEdit.js}"></script>
</head>
<body data-width="400" data-height="500">
<div class="container-fluid">
    <form class="form-horizontal" role="form" th:action="@{/system/editMenu}">
        <input type="hidden" id="pid" name="pid">
        <div class="form-group">
            <label class="col-xs-4 control-label text-right"> 菜单编号：</label>
            <div class="col-xs-8">
                <div class="iconic-input right">
                    <input id="menuId" name="menuId" type="text" class="form-control spinner" placeholder="6位数字">
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-4 control-label"> 菜单名称：</label>
            <div class="col-xs-8">
                <div class="iconic-input right">
                    <input id="menuName" name="menuName" type="text" class="form-control spinner" placeholder="1~20位字符">
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-4 control-label"> 上级菜单：</label>
            <div class="col-xs-8">
                <select id="parentId" name="parentId" class="form-control spinner" data-url="system/listMenu"
                        data-value-field="menuId" data-text-field="menuName">
                    <option value="">顶级</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-4 control-label"> 菜单图标：</label>
            <div class="col-xs-8">
                <div class="iconic-input right">
                    <input id="menuIcon" name="menuIcon" type="text" class="form-control spinner" placeholder="1~60位字符">
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-4 control-label"> 菜单链接：</label>
            <div class="col-xs-8">
                <div class="iconic-input right">
                    <input id="menuLink" name="menuLink" type="text" class="form-control spinner" placeholder="1~255位url">
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-4 control-label"> 菜单状态：</label>
            <div class="col-xs-8">
                <label class="radio-inline">
                    <input class="radio" type="radio" name="menuStatus" value="0"> 隐藏
                </label>
                <label class="radio-inline">
                    <input type="radio" name="menuStatus" value="1"> 显示
                </label>
            </div>
        </div>
    </form>
</div>
</body>
</html>